import ebooklib

from ebooklib import epub

def read_epub(filepath):
    book = epub.read_epub(filepath)

    title = book.get_metadata('DC', 'title')
    print('title', title)

    creator = book.get_metadata('DC', 'creator')
    print('creator', creator)

    for item in book.get_items_of_type(ebooklib.ITEM_DOCUMENT):
        content = item.get_content().decode('utf-8')
        print(f'Chapter: {item.get_name()}')
        print(content)
        break
        
read_epub('book.epub')